<template lang="pug">
view.flex.bg
	view.w50.classList(
	v-for="item,index in 10" 
	style="margin-bottom:10px"
	@click="detail"
	)
		view.classbg
			view(style="width:100%;height:140px;border-radius: 6px;overflow: hidden;")
				image(
					src="/static/logo.png",
					mode="widthFix",
					style="width:100%"
				)
			view.c6.f14.box.prl10.mt10 遇到烫伤，怎么紧急处 理？
			view.flex.at.mt10.prl10
				image(
					src="/static/logo.png",
					mode="widthFix",
					style="width:30px;height:30px;border-radius:50%;margin-right:8px"
				)
				view.c3.f14 张天天
</template>

<script>
	export default {
		name:"cartList",
		data() {
			return {
				
			};
		},
		methods:{
			detail(){
				uni.navigateTo({
					url:'/pages/ClassRoom/detail'
				})
			}
		}
	}
</script>

<style>
	.classList:nth-child(2n-1){
		box-sizing: border-box;
		padding-right: 5px;
	}
	.classList:nth-child(2n){
		box-sizing: border-box;
		padding-left: 5px;
	}
.classbg{
	background: #fff;
	padding-bottom: 10px;
	border-radius: 6px;
}
</style>